package cn.tedu.mapper.trolley;

import cn.tedu.pojo.entity.Trolley;
import cn.tedu.pojo.vo.tryvo.TrlyStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;



@Repository
public interface TrolleyMapper {
    //新增购物车信息
    void saveToly(Trolley trolley);


    //按id删除购物车商品
    int deleteTolyById(Long id);

    //根据id查询购物车信息
    TrlyStandardVO selectctTolyById(Long id);


    //根据Id修改订单信息
   int updateQuantityTolyById(@Param("id") Long id, @Param("commodityNumber") Long commodityNumber);
}
